#!/usr/bin/env python

##########################################################################
# File Name: settings.py
# Author: baohua
# Mail: liubaohuachina@163.com
# Create Time: 2020/03/24 09:21:29
# Version: 1.0
# Description: 
##########################################################################

from .config import config

# To get request.remote_ip when running tornado behid a reverse proxy
# we need xheaders to True
server_settings = {
    "xheaders": True,
}

app_settings = {
    "debug": config['DEBUG'],
    "cookie_secret": config['COOKIE_SECRET'],
    "login_url": "/login",
}
